list1 = [12,33,55,77,99,889,1421,11]
b = []
for i in range(len(list1)):
    if i%2!=0:
        b.append(list1[i])
print(b)
# 进化
def get_new_list(list1):
    result = []
    for i in range(len(list1)):
        if i%2!=0:
            result.append(list1[i])
    print(result)
get_new_list([12,33,55,77,99,889,1421,11])
# 进化
def get_list(list3):
    def luoji(list1,name,time):
        list3(name, time)
        print("我是最开始执行的")

        result = []
        for i in range(len(list1)):
            if i % 2 != 0:
                result.append(list1[i])
        print("我执行结束了")
        return result
    return luoji #2
@get_list   #1
def list3(name,time):
    print(f"{name}在{time}时间执行了代码")
list3([12, 33, 55, 77, 99, 889, 1421, 11],"王长帅","2023年11月17日")